package cn.tedu.qxhouserent.house.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("house")
public class House implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private String majorImage;
    private BigDecimal price;
    private BigDecimal area;
    private String houseType;
    private Integer floor;
    private Integer maxFloor;
    private String houseImage;
    private String communityDescription;
    private Integer hasElevator;
    private Integer recom;
    private Long collectionCount;
    private Long sectionId;
    private Long orientationId;
    private Long agentId;
    private Long houseCategoryId;
    private LocalDateTime gmtCreated;
    private LocalDateTime gmtModified;
}
